
from fdfs_client.client import Fdfs_client


# 创建fastdfs客户端 并指定它的配置文件
fdsf_client = Fdfs_client('./client.conf')
print(5)
ret = fdsf_client.upload_by_filename('/home/python/Desktop/123.jpg')
print(6)
print(ret)
print(7)
# {'Group name': 'group1', 'Remote file_id': 'group1/M00/00/00/wKjpgF0saYaAe7JCAAOoKdKveCQ503.jpg', 'Status': 'Upload successed.', 'Local file name': '/home/python/Desktop/123.jpg', 'Uploaded size': '234.00KB', 'Storage IP': '192.168.233.128'}